﻿'use strict';
import FetchEx from '../utils/fetchex'

export function GetNewsList(catalog,pageIndex,pageSize) {
	let formData = new FormData();
	formData.append('catalog',catalog);
	formData.append('pageIndex',pageIndex);
	formData.append('pageSize',pageSize);
	return FetchEx.requestPost('news_list',formData);
}

export function GetNewShow(show) {
	let formData = new FormData();
	formData.append('show',show);
	return FetchEx.requestPost('news_list',formData);
}

export function GetNewsDetail(id) {
	return FetchEx.requestGet('news_detail','id='+id);
}